'use strict';
const { Service } = require('egg');
class ImageService extends Service {
  async getImage({page='home'}){
    const {ctx,app} = this;
    const imageList = await app.model.Image.findAll({ offset: 0, limit: 2, },{
      where:{
        page
      }
    })
    return imageList;
  }
}

module.exports = ImageService;
